Reset cursor when mouse leaves a toplevel window.
authorDaniel Sabo <DanielSabo@gmail.com>
Thu, 8 Aug 2013 14:36:28 +0000 (09:36 -0500)
committerCody Russell <cody@jhu.edu>
Thu, 8 Aug 2013 14:38:09 +0000 (09:38 -0500)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=692548

gdk/quartz/gdkevents-quartz.c

index fcda0724414138bd54a38db72ed3bffa28e8c091..bfd043012e2a468f4647bb0cd93314729fe44c7b 100644 (file)
@@ -1494,8 +1494,11 @@ gdk_event_translate (GdkEvent *event,
       }
       break;
 
-    case NSMouseEntered:
     case NSMouseExited:
+      if (WINDOW_IS_TOPLEVEL (window))
+          [[NSCursor arrowCursor] set];
+      /* fall through */
+    case NSMouseEntered:
       return_val = synthesize_crossing_event (window, event, nsevent, x, y, x_root, y_root);
       break;